package sg.edu.nus.iss.stockex;

public class RelativeStrengthIndex {
	
	public String code;
	public String date;
	public double rsi;
	
	public RelativeStrengthIndex(String code, String date, double rsi) {
		super();
		this.code = code;
		this.date = date;
		this.rsi = rsi;
	}
	
	public RelativeStrengthIndex(String strLine) {
		super();
		String [] words = strLine.split("\t");
		this.code = words[0].trim();
		this.date = words[1].trim();
		this.rsi = Double.parseDouble(words[2].trim());
	}
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public double getRsi() {
		return rsi;
	}
	public void setRsi(double rsi) {
		this.rsi = rsi;
	}
	
}
